{extend name="Public:adminpublic"/}
{block name="main"}
    <div class="mws-panel grid_8">
  <div class="mws-panel-header">
    <span>
      <i class="icon-table"></i>会员列表</span>
  </div>
  <div class="mws-panel-body no-padding">
    <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
      <form action="/adminuser/index" method="get">
      <div class="dataTables_filter" id="DataTables_Table_1_filter">
        <label>Search:
          <input type="text" aria-controls="DataTables_Table_1" name="k" value="{$k}"></label>
          <input type="submit" value="搜索">
        </div>
        </form>
      <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
        <thead>
          <tr role="row">
            <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 100px;">ID</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 137px;">用户名</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 124px;">手机</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" style="width: 85px;">email</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 60px;">状态</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 60px;">会员等级</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 60px;">注册时间</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 60px;">操作</th>
          </tr>
        </thead>
        <tbody role="alert" aria-live="polite" aria-relevant="all">
         {foreach name="data" item="row"}
          <tr class="odd">
            <td class=" ">{$row['id']}</td>
            <td class=" ">{$row['loginname']}</td>
            <td class=" ">{$row['phone']}</td>
            <td class=" ">{$row['emil']}</td>
            <td class=" "><a href="/adminuser/status/id/{$row['id']}">
                {if condition="$row.status eq '1'"}激活
                {else /} 禁用
                {/if}
            </a></td>
            <td class=" ">{$row['level']}</td>
            <td class=" ">{$row['addtime']}</td>
            <td class=" "><a href="/adminuser/delete/id/{$row['id']}" class="btn btn-success">删除</a></td>
          </tr>
         {/foreach}
        </tbody>
      </table>
      <div class="dataTables_paginate paging_full_numbers" id="pages">
       	{$data->appends($data2)->render()}
      </div>
    </div>
  </div>
</div>
{/block}
{block name="title"}后台首页{/block}
